package com.sdp.th.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 报警数量
 * </p>
 *
 * @author zsp
 * @since 2025-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("th_alarm_count")
public class ThAlarmCount extends Model<ThAlarmCount> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 温湿度报警数量
     */
    @TableField("alarm_th_count")
    private BigDecimal alarmThCount;

    /**
     * 趋势报警数量
     */
    @TableField("alarm_trend_count")
    private BigDecimal alarmTrendCount;

    /**
     * 烟感报警数量
     */
    @TableField("alarm_smoke_count")
    private BigDecimal alarmSmokeCount;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
